package com.itheima.test1110work2;

public class Animal {
    private String kind;//种类
    private double weight;//重量
    //有参构造
    public Animal(String kind, double weight) {
        this.kind = kind;
        this.weight = weight;
    }
    //无参构造
    public Animal() {

    }
    public String getKind() {
        return kind;
    }
    public void setKind(String kind) {
        this.kind = kind;
    }
    public double getWeight() {
        return weight;
    }
    public void setWeight(double weight) {
        this.weight = weight;
    }
}
